package main

import (
	_ "api/app"
	"api/config"
	"gitee.com/dreamwood/ez"
	"gitee.com/dreamwood/ez/server"
)

func main() {
	ez.S.Host = config.GetCore().ServerHost
	ez.S.Port = config.GetCore().ServerPort
	ez.S.AssetDir = config.GetCore().GetRoot()
	ez.SetDebug(config.GetCore().IsDev)

	server.Run()

	//todo graceful shutdown
}
